﻿using Microsoft.Extensions.DependencyInjection;
using Modules.Person.Repositories;
using PmSoft;

namespace Modules.Person;

[UseDI(ServiceLifetime.Scoped)]
public class PersonCertificateDistService
{
    private readonly PersonCertificateDistRepository repository;

    public PersonCertificateDistService(PersonCertificateDistRepository repository)
    {
        this.repository = repository;
    }

    public IEnumerable<PersonCertificateDist> GetAll()
    {
        return repository.GetAll();
    }
}